package com.zlw.main.audioeffects.utils;

public class ClickUtils {

    private static long lastClickTime;

    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        if (0 < timeD && timeD < 3000) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
    
    public static boolean isFastDoubleClick(long max) {
        long time = System.currentTimeMillis();
        long timeD = time - lastClickTime;
        if (0 < timeD && timeD < max) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}